package com.feixiu.mapreduce.javaserilizable;

import java.io.Serializable;
import java.util.Date;

public class Person implements Serializable {//需要实现接口
    //如果需要将某个对象保存到磁盘上或者通过网络传输，那么这个类应该实现Serializable接口或者Externalizable接口之一
    private String name;
    private int age;
    private double height;
    private Long birthday;
    private String  birthdaySee;

    public Person(String name, int age, double height, Long birthday, String birthdaySee) {
        this.name = name;
        this.age = age;
        this.height = height;
        this.birthday = birthday;
        this.birthdaySee = birthdaySee;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", height=" + height +
                ", birthday=" + birthday +
                ", birthdaySee=" + birthdaySee +
                '}';
    }
}
